﻿using System;
using System.Collections.Generic;

namespace Me.Practice.ElevatorEngine.Domain.Entity
{
	[Serializable]
	public class Building
	{
		public Building(Init init)
		{
			Name = init.Name;
			Address = init.Address;
			Elevators = init.Elevators;
			Floors = init.Floors;
			FloorCount = init.FloorCount;
		}
		
		public string Name { get; private set; }
		public string Address { get; private set; }
		public IEnumerable<Elevator> Elevators { get; private set; }
		public IEnumerable<Floor> Floors { get; private set; }
		public int FloorCount { get; private set; }
		
		public class Init
		{
			public string Name { get; set; }
			public string Address { get; set; }
			public IEnumerable<Elevator> Elevators { get; set; }
			public IEnumerable<Floor> Floors { get; set; }
			public int FloorCount { get; set; }
		}	
	}
}
